package com.ruoyi.pet.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品对象 pet_drug
 * 
 * @author ruoyi
 * @date 2023-09-01
 */
public class PetDrug extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String name;

    /** 药品描述及使用说明 */
    @Excel(name = "药品描述及使用说明")
    private String description;

    /** 生产厂商 */
    @Excel(name = "生产厂商")
    private String manufacturer;

    /** 药品每日用量 */
    @Excel(name = "药品每日用量")
    private String usageInfo;

    /** 处方类型 */
    @Excel(name = "处方类型")
    private Integer type;

    /** 药品单价 */
    @Excel(name = "药品单价")
    private Long price;

    /** 药品库存 */
    @Excel(name = "药品库存")
    private Long numberPrescriptions;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }
    public void setUsageInfo(String usageInfo) 
    {
        this.usageInfo = usageInfo;
    }

    public String getUsageInfo() 
    {
        return usageInfo;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setNumberPrescriptions(Long numberPrescriptions) 
    {
        this.numberPrescriptions = numberPrescriptions;
    }

    public Long getNumberPrescriptions() 
    {
        return numberPrescriptions;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModified(Date gmtModified) 
    {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() 
    {
        return gmtModified;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("manufacturer", getManufacturer())
            .append("usageInfo", getUsageInfo())
            .append("type", getType())
            .append("price", getPrice())
            .append("numberPrescriptions", getNumberPrescriptions())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModified", getGmtModified())
            .toString();
    }
}
